package com.wxp.serviceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.wxp.dao.UserDao;
import com.wxp.entity.User;
import com.wxp.service.UserService;

@Service
@Transactional
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    public Page<User> findAll(Pageable pageable){

        return this.userDao.findAll(pageable);
    }
    public Page<User> findAll(Specification spec,PageRequest pageRequest){
        return this.userDao.findAll(spec,pageRequest);
    }

   


}
